package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("tz_blog")
public class Blog {

  @TableId
  private Long uid;
  private String title;
  private String summary;
  private String content;
  private String tagUid;
  private Integer clickCount;
  private Integer collectCount;
  private String titleImg;

  /**
   * 0:删除 1:审核通过 2:审核驳回 3:审核中  4:拉黑（回显用）
   */
  private Integer status;

  /**
   * 审核类型 0：人工  1：自动
   */
  private Integer auditType;

  private Date createTime;
  private Date updateTime;
  private String adminUid;
  private String isOriginal;
  private String author;
  private String articlesPart;
  private Long blogSortUid;
  private Integer level;
  private Long shopId;
  private String isPublish;
  private Integer sort;

  /**
   * 评论权限：默认1.所有人 2.我关注的人 3.我的粉丝 0.仅自己
   */
  private Integer openComment;
  private Integer type;
  private String outsideLink;
  private String userUid;
  private Integer articleSource;
  private String reason;
  private Integer commentCount;
  private String ip;
  /**
   * 标签,一篇博客对应多个标签
   */
  @TableField(exist = false)
  private List<Tag> tagList;

  /**
   * 标题图
   */
  @TableField(exist = false)
  private List<String> photoList;

  /**
   * 博客分类
   */
  @TableField(exist = false)
  private BlogSort blogSort;

  /**
   * 博客分类名
   */
  @TableField(exist = false)
  private String blogSortName;

  /**
   * 点赞数
   */
  @TableField(exist = false)
  private Integer praiseCount;

  /**
   * 版权申明
   */
  @TableField(exist = false)
  private String copyright;
  @TableField(exist = false)
  private String userName;
  @TableField(exist = false)
  private String userPic;
  @TableField(exist = false)
  private Boolean IsHasRealName;
  @TableField(exist = false)
  private String massageSwitch;

  @TableField(exist = false)
  private Boolean praiseIsMe; //点赞
  @TableField(exist = false)
  private Boolean collectionIsMe;//收藏
  @TableField(exist = false)
  private Integer praiseIsMeNum;//点赞数

  @TableField(exist = false)
  private Boolean isShow;

  @TableField(exist = false)
  private List<Comment> hotComment; //热评

  @TableField(exist = false)
  private Integer relation; // 关注
  @TableField(exist = false)
  private String province;
}
